﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DualPlaneFR4Paster.Migrations
{
    public partial class addIsUse2MProduct : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<bool>(
                name: "IsReverse",
                table: "MProducts",
                type: "INTEGER",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "IsUse",
                table: "MProducts",
                type: "INTEGER",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "IsUse",
                table: "MPcs",
                type: "INTEGER",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<double>(
                name: "STX",
                table: "MPcs",
                type: "REAL",
                nullable: false,
                defaultValue: 0.0);

            migrationBuilder.AddColumn<double>(
                name: "STY",
                table: "MPcs",
                type: "REAL",
                nullable: false,
                defaultValue: 0.0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "IsReverse",
                table: "MProducts");

            migrationBuilder.DropColumn(
                name: "IsUse",
                table: "MProducts");

            migrationBuilder.DropColumn(
                name: "IsUse",
                table: "MPcs");

            migrationBuilder.DropColumn(
                name: "STX",
                table: "MPcs");

            migrationBuilder.DropColumn(
                name: "STY",
                table: "MPcs");
        }
    }
}
